<script setup lang="ts">
const props = defineProps<{
    navData: string
}>()
</script>

<template>
    <div class="nav">
        <div class="nav-content">
            <img class="nav-img" src="@/images/icon/house.png" alt="">
            <div class="nav-text">首页{{ props.navData }}</div>
        </div>
    </div>
</template>

<style scoped lang="scss">
.nav {
    display: flex;
    width: 100vw;
    height: 7vh;
    background-color: #f5f5f5;
    margin-bottom: 6vh;

    .nav-content {
        display: flex;
        width: 85vw;
        margin: auto;

        .nav-img {
            width: 7vh;
            height: 7vh;
            padding: 1vw;
            background-color: #fff;
        }

        .nav-text {
            font-size: 0.9vw;
            margin: 1vw;
            color: #999;
        }
    }
}
</style>